import { request } from '@/api/REQ'

/* 获取输入表格标题与行 */
export function tables(solutionId: string) {
	return request({
		url: `/dict/table-info/IN/${solutionId}/3`,
		method: 'get',
	})
}
/* 获取输出表格标题与行 */
export function tablesOut(solutionId: string) {
	return request({
		url: `/dict/table-info/OUT/${solutionId}/3`,
		method: 'get',
	})
}
/* 获取输入输出表格标题与行 */
export function tablesInAndOut(solutionId: string) {
	return request({
		url: `/dict/table-info/ALL/${solutionId}/3`,
		method: 'get',
	})
}
/* 获取指标 */
export function indicators(solution_id: string) {
	return request({
		url: `/dict/indicator-info/${solution_id}/3`,
		method: 'get',
	})
}
/* 表格包含的指标 */
export function tableIndicator(table_id: number) {
	return request({
		url: `/dict/table-indicator/${table_id}/3`,
		method: 'get',
	})
}

export default {
	tables,
	tablesOut,
	tablesInAndOut,
	indicators,
	tableIndicator,
}
